package StudyCode.summary.Basic.mystring;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringToCharacter {
	public static void main(String[] args) {
		String str = "String";
		System.out.println(str);

		System.out.println("方法1");
		for (char chr : str.toCharArray()) {
			System.out.println(chr);
		}

		System.out.println("方法2");
		for (int x = 0; x <= str.length() - 1; x++) {
			System.out.println(str.charAt(x));
		}
	}
}
